package com.kede.pay.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户管理
 * @TableName sy_users
 */
@TableName(value ="sy_users")
@Data
public class UsersDomain implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 积分数量
     */
    @TableField(value = "integral")
    private BigDecimal integral;

    /**
     * 1会员0非会员   2星会员
     */
    @TableField(value = "is_vip")
    private Integer isVip;

    /**
     * 1用户2骑手3门店4区代理5市代理
     */
    @TableField(value = "user_type")
    private Integer userType;

    /**
     * 用户昵称
     */
    @TableField(value = "users_name")
    private String usersName;

    /**
     * 用户头像
     */
    @TableField(value = "users_image")
    private String usersImage;

    /**
     * 用户性别
     */
    @TableField(value = "users_sex")
    private Integer usersSex;

    /**
     * 用户电话
     */
    @TableField(value = "users_phone")
    private String usersPhone;

    /**
     * 所属代理
     */
    @TableField(value = "admin_id")
    private Integer adminId;

    /**
     *  唯一表示凭证 数据库居然有还有个 openid
     */
    @TableField(value = "open_id")
    private String openId;

    /**
     * 用户总收入
     */
    @TableField(value = "count_money")
    private BigDecimal countMoney;

    /**
     * 用户已提现金额
     */
    @TableField(value = "withdraw_money")
    private BigDecimal withdrawMoney;

    /**
     * 用户当前余额
     */
    @TableField(value = "residue_money")
    private BigDecimal residueMoney;

    /**
     * token
     */
    @TableField(value = "token")
    private String token;

    /**
     * token过期时间
     */
    @TableField(value = "expiration_time")
    private Integer expirationTime;

    /**
     * 更新时间
     */
    @TableField(value = "createtime",fill = FieldFill.INSERT)
    private Integer createtime;

    /**
     * 用户状态:1=正常 ,2=拉黑
     */
    @TableField(value = "status")
    private Object status;

    /**
     * 用户密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 出生日期
     */
    @TableField(value = "birthday")
    private String birthday;

    /**
     * 
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 
     */
    @TableField(value = "openid")
    private String openid;

    /**
     * 小程序openid
     */
    @TableField(value = "xcx_openid")
    private String xcxOpenid;

    /**
     * app骑手端openid
     */
    @TableField(value = "app_rider_openid")
    private String appRiderOpenid;

    /**
     * 
     */
    @TableField(value = "xcx_rider_openid")
    private String xcxRiderOpenid;

    /**
     * 门店端小程序openid
     */
    @TableField(value = "xcx_store_openid")
    private String xcxStoreOpenid;

    /**
     * 小程序区代理
     */
    @TableField(value = "xcx_qu_openid")
    private String xcxQuOpenid;

    /**
     * 小程序市代理openid
     */
    @TableField(value = "xcx_shi_openid")
    private String xcxShiOpenid;

    /**
     * 
     */
    @TableField(value = "thumb")
    private String thumb;

    /**
     * 是否是新用户
     */
    @TableField(value = "is_new")
    private Integer isNew;

    /**
     * 
     */
    @TableField(value = "lastid")
    private Integer lastid;

    /**
     * 余额
     */
    @TableField(value = "user_money")
    private BigDecimal userMoney;

    /**
     * 
     */
    @TableField(value = "wx_qrcode")
    private String wxQrcode;

    /**
     * 
     */
    @TableField(value = "wx_name")
    private String wxName;

    /**
     * 
     */
    @TableField(value = "alipay_qrcode")
    private String alipayQrcode;

    /**
     * 
     */
    @TableField(value = "alipay_name")
    private String alipayName;

    /**
     * 本月已兑换数量
     */
    @TableField(value = "yet_num")
    private Integer yetNum;

    /**
     * 会员到期时间
     */
    @TableField(value = "expire_time")
    private Integer expireTime;

    /**
     * 支付密码
     */
    @TableField(value = "pay_pwd")
    private String payPwd;

    /**
     * 省市区
     */
    @TableField(value = "address")
    private String address;

    /**
     * 详细地址
     */
    @TableField(value = "address_detail")
    private String addressDetail;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;





    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", integral=").append(integral);
        sb.append(", isVip=").append(isVip);
        sb.append(", userType=").append(userType);
        sb.append(", usersName=").append(usersName);
        sb.append(", usersImage=").append(usersImage);
        sb.append(", usersSex=").append(usersSex);
        sb.append(", usersPhone=").append(usersPhone);
        sb.append(", adminId=").append(adminId);
        sb.append(", openId=").append(openId);
        sb.append(", countMoney=").append(countMoney);
        sb.append(", withdrawMoney=").append(withdrawMoney);
        sb.append(", residueMoney=").append(residueMoney);
        sb.append(", token=").append(token);
        sb.append(", expirationTime=").append(expirationTime);
        sb.append(", createtime=").append(createtime);
        sb.append(", status=").append(status);
        sb.append(", password=").append(password);
        sb.append(", birthday=").append(birthday);
        sb.append(", sex=").append(sex);
        sb.append(", openid=").append(openid);
        sb.append(", xcxOpenid=").append(xcxOpenid);
        sb.append(", appRiderOpenid=").append(appRiderOpenid);
        sb.append(", xcxRiderOpenid=").append(xcxRiderOpenid);
        sb.append(", xcxStoreOpenid=").append(xcxStoreOpenid);
        sb.append(", xcxQuOpenid=").append(xcxQuOpenid);
        sb.append(", xcxShiOpenid=").append(xcxShiOpenid);
        sb.append(", thumb=").append(thumb);
        sb.append(", isNew=").append(isNew);
        sb.append(", lastid=").append(lastid);
        sb.append(", userMoney=").append(userMoney);
        sb.append(", wxQrcode=").append(wxQrcode);
        sb.append(", wxName=").append(wxName);
        sb.append(", alipayQrcode=").append(alipayQrcode);
        sb.append(", alipayName=").append(alipayName);
        sb.append(", yetNum=").append(yetNum);
        sb.append(", expireTime=").append(expireTime);
        sb.append(", payPwd=").append(payPwd);
        sb.append(", address=").append(address);
        sb.append(", addressDetail=").append(addressDetail);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }


    public String getOpenid() {
        return openid;
    }

    public String getOpenId() {
        return openId;
    }
}